﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Random rd = new Random();
            Stopwatch sw = new Stopwatch();
            List<int> A = new List<int>();
            sw.Restart();
            for (int i = 0; i<1000000;i++)
            {
                A.Add(rd.Next(0,9));
            }
            sw.Stop();
            Console.WriteLine("Список заполнился за " + sw.ElapsedMilliseconds + " мс");
            Console.ReadLine();
        }
    }
}
